package com.lange.fileManagement.dao;

import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CaptchaDaoImpl implements CaptchaDao {
    @Autowired
    private CaptchaDao captchaDao;

    @Override
    public Integer addCaptcha(String value) {
        return captchaDao.addCaptcha(value);
    }

    @Override
    public List<JSONObject> getCaptchaByValue(String value) {
        return captchaDao.getCaptchaByValue(value);
    }

    @Override
    public Integer delCaptcha() {
        return captchaDao.delCaptcha();
    }
}
